package demo5;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 */



public class Test {
    public static void main(String[] args) {
        B b = new B();
        System.out.println("子类方法中访问成员方法");
        b.fun4();
        System.out.println("==========");
        System.out.println("子类B对象访问成员方法");
        b.fun1();
        b.fun2(10);
        b.fun2();
        b.fun3();
        /*b.fun5();//error*/
    }
}
